/** 
 * ================================================================================
 * 		Project		: Kompas Bola
 * 		File		: MatchFragment.java
 * 		Description	: Fragment Match
 * 		Called		: KlasemenActivity.java
 * ================================================================================
 * */
package com.kompas.bola.application.fragment;

import java.util.List;
import android.os.Bundle;
import android.view.View;
import java.util.ArrayList;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.TextView;
import android.view.LayoutInflater;
import com.kompas.bola.application.R;
import android.support.v4.view.ViewPager;
import com.actionbarsherlock.app.SherlockFragment;
import com.kompas.bola.application.adapter.ListMatchAdapter;
import com.kompas.bola.application.model.Content;
/** ======================================================================= */
public class MatchFragment extends SherlockFragment {
	private ListView list;
	private String _getLiga;
	private String _getTime;
    private ListMatchAdapter adapter;
	private List<Content> list_data						= new ArrayList<Content>();
	/** =================================================================== */
	public MatchFragment(List<Content> data){
		list_data										= data;
	}
	/** =================================================================== */
	public MatchFragment(){}
	/** =================================================================== */
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		
    		View view		 							= inflater.inflate(R.layout.match_screen, container, false);
    		list 										= (ListView) view.findViewById(R.id.list_match);  		
    		adapter										= new ListMatchAdapter(getActivity(), list_data);	
    		list.setAdapter(adapter);
			
    		return view;	
    }
	/** =================================================================== */
	
}
